#pragma warning disable 108
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using Cephei;
using Cephei.Generic;
using Cephei.QL.Math;
namespace Cephei.QL.Math.Optimization
{
     // <summary> 
	// ! Base class for least square problem
	// </summary>
    [Guid ("484C1D41-599E-4124-93DF-1D00AFA3DC56"),ComVisible(true)]
	public interface ILeastSquareProblem 
	{
		///////////////////////////////////////////////////////////////
        // Methods
        //
        
		 UInt64 Size {get;}
        
		 ILeastSquareProblem TargetAndValue(Cephei.QL.Math.IArray x, Cephei.QL.Math.IArray target, Cephei.QL.Math.IArray fct2fit);
        
		 ILeastSquareProblem TargetValueAndGradient(Cephei.QL.Math.IArray x, Cephei.QL.Math.IMatrix grad_fct2fit, Cephei.QL.Math.IArray target, Cephei.QL.Math.IArray fct2fit);
    }

    // <summary> 
	// ! Base class for least square problem Factory
	// </summary>
   	[ComVisible(true)]
    public interface ILeastSquareProblem_Factory // : Collection_Factory<ILeastSquareProblem, ICell<ILeastSquareProblem>>
    {
        ///////////////////////////////////////////////////////////////
        // Factory methods
        //
    }
}

